package com.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dao.LoggingMapper;
import com.model.Logging;
import com.model.User;
import com.service.ILoggingService;

@Service("loggingService")
public class LoggingServiceImpl implements ILoggingService {
	@Resource
	private LoggingMapper loggingMapper;
	
	
	public int saveLogging(Logging l) {
		int i = loggingMapper.insertSelective(l);
		return 0;
	}
	
	
	public List<Logging> findLoggingByNo(String no) {
		return loggingMapper.findLoggingByNo(no);
	}

	public int countLoggingByNo(String no) {
		int i = loggingMapper.countLoggingByNo(no);
		return i;
	}


	public List<Logging> findUserBypage(Map<Object, Object> map) {
		return loggingMapper.findUserBypage(map);
	}


	public int findStatusByNo(String no) {
		int i = loggingMapper.findStatusByNo(no);
		return i;
	}
	
	public List<Logging> getAllLogging(Map<Object, Object> map) {
		return loggingMapper.getAllLogging(map);
	}
	
	public int countAllLogging(){
		int i = loggingMapper.countAllLogging();
		return i;
	}

}
